from selenium import webdriver
from selenium.webdriver.common.by import By

class Base():

    def __init__(self,driver):
        self.driver.webdriver=driver


    def open_url(self,driver,url):
        self.driver.get(url)

    #封装点击
    def click(self,loc):
        self.click(loc)

    #分装键盘
    def send_keys(self,loc):
        self.send_keys(loc)
